import { createApp } from 'vue'
import App from './App.vue'

//引入elment-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//引入axios
import axios from 'axios'

//引入全局样式 global.css
import "./assets/css/global.css"

//图标导入
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//引入echarts
import* as echarts from 'echarts'

//引入创建的路由器
import router from './router/index';

const app= createApp(App)

//图标使用
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus)
app.use(router)
app.config.globalProperties.$echarts = echarts
app.provide('$axios',axios)

//这个需要最后设置
app.mount('#app')
